Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base32.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base32.js

Base 32 encodings for JavaScript

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is base32.js?

The base32.js npm package provides utilities for encoding and decoding data using the Base32 encoding scheme. This encoding is often used in applications where data integrity and readability are important, such as in QR codes, file names, and URLs.

What are base32.js's main functionalities?

Base32 Encoding

This feature allows you to encode a string into Base32 format. The code sample demonstrates how to encode the string 'Hello, World!' into its Base32 representation.

const base32 = require('base32.js');
const encoder = new base32.Encoder();
const encoded = encoder.write('Hello, World!').finalize();
console.log(encoded); // Output: JBSWY3DPEBLW64TMMQ======

Base32 Decoding

This feature allows you to decode a Base32 encoded string back to its original form. The code sample demonstrates how to decode the Base32 string 'JBSWY3DPEBLW64TMMQ======' back to 'Hello, World!'.

const base32 = require('base32.js');
const decoder = new base32.Decoder();
const decoded = decoder.write('JBSWY3DPEBLW64TMMQ======').finalize();
console.log(decoded); // Output: Hello, World!

Other packages similar to base32.js

Keywords

FAQs

Package last updated on 31 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc